/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.domain.dict.repository;

import com.lap.auth.domain.dict.DictType;
import java.util.Optional;

/**
 * 数字字典分类仓储接口
 *
 * @author Shuisheng Lao(劳水生)
 * @version 0.0.1
 */
public interface DictTypeRepository {

  Integer save(DictType dictType);

  int deleteById(Integer id);

  Optional<DictType> findById(Integer id);

  Optional<DictType> findByCode(String code);
}
